.fi-modal-content {
    padding-left:0px !important;
    padding-right:0px !important;
}


.fi-modal-content {
    padding-left:10px !important;
    padding-right:10px !important;
}

.fi-modal-content.py-6 {
    padding-top:0.5rem !important;
    padding-bottom:1rem !important;
}

:root {
    --container-8xl: 85rem;
}

#container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

#top {
    background-color: white;
    height: 50%;
    min-height: 30px;
    overflow: hidden;
    position: relative;
}

#top iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#dragbar {
    height: 15px;
    background-color: #333;
    cursor: row-resize;
    z-index: 2;
}

#bottom {
    background-color: #282a36;
    flex-grow: 1;
    min-height: 30px;
    overflow: auto; /* Changed from hidden to auto */
    display: flex;
    flex-direction: row;
}

#bottom-left {
    background-color: #282a36;
    flex-basis: 50%;
    min-width: 30px;
    overflow: auto; /* Changed from hidden to auto */
    display: flex;
    flex-direction: column;
}

.editor {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    background-color: #333;
}

#vdragbar {
    width: 15px;
    background-color: #333;
    cursor: col-resize;
}

#bottom-right {
    background-color: transparent;
    flex-grow: 1;
    min-width: 30px;
    overflow: auto;
}

.vertical-layout #container {
    flex-direction: row;
}

.vertical-layout #top {
    width: 50%;
    height: 100%;
    min-width: 30px;
    min-height: 100%;
}

.vertical-layout #dragbar {
    width: 15px;
    height: 100%;
    cursor: col-resize;
}

.btn {
    outline: none;
    background-color: transparent;
    color:lightgray;
    margin:6px;
    font-size: 1.3rem;
    padding-left:15px;
    padding-right:15px;
    padding-top:5px;
    padding-bottom: 5px;
    border-radius: 5px;
    border:1px solid lightgray;
    cursor: pointer;
}

.vertical-layout #bottom {
    flex-direction: column;
    width: 50%;
    height: 100%;
}

.vertical-layout #vdragbar {
    width: 100%;
    height: 15px;
    cursor: row-resize;
}

.bottom-right-menu > button.active {
    border:1px solid red;
}

div.bottom-content-container > div {
    display:none;
}

div.bottom-content-container > div.active {
    display:block;
    color: lightgray;
    margin:8px;
}

.bottom-right, .bottom-left {
    background-color:#282a36;
    border:1px solid lightgray;
}

.bottom-left-menu {
    background-color: transparent;
    display: flex;
}

.bottom-left-menu .btn {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap:5px;
}

.bottom-left-menu .btn.active {
    background-color: #000000;
    color:white;
    font-weight: bold;
}

#component_tree ul.tree {
    list-style: none;
    padding-left: 20px;
    font-family: sans-serif;
}

#component_tree .tree-item {
    margin: 4px 0;
    cursor: pointer;
}

#component_tree .toggle-button {
    font-weight: bold;
    margin-right: 6px;
    cursor: pointer;
    color: #007BFF;
}

#component_tree .hidden {
    display: none;
}

#demo_data .tree {
    font-family: monospace;
    line-height: 1.6;
}
#demo_data .node {
    margin-left: 20px;
    position: relative;
}
#demo_data .toggle {
    cursor: pointer;
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 6px;
    color: white;
    font-weight: bold;
}
#demo_data .key {
    color: white;
}
#demo_data .value {
    color: lightgreen;
}
#demo_data .hidden {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    height: 100%;
}

.CodeMirror {
    height: 100%;
    min-height: 100px;
}

.CodeMirror-scroll {
    overflow: auto !important;
}

.tree-node {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    font-family: Arial, sans-serif;
}

.node-title {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 1rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 0.75rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toggle-btn:hover {
    background-color: #f0f0f0;
}

.icon {
    width: 1rem;
    height: 1rem;
    stroke: #4a4a4a;
    stroke-width: 2;
}

.node-children {
    margin-left: 1.5rem;
    border-left: 1px solid #d1d5db;
    padding-left: 0.75rem;
}

.node-title span {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.node-title span:hover, .toggle-btn:hover {
    background-color: #4a4a4a;
    color:white;
}

.toggle-btn:hover .icon {
    stroke: white;
}

.node-title span {
    background-color: #e5e7eb;
}

.toggle-btn {
    background-color: #e5e7eb;
}
